/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import java.util.List;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdMetadataBusinessSceneDefinition;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 元数据管理-业务场景定义业务对象 isfd_metadata_business_scene_definition
 *
 * @author Lion Li
 * @date 2024-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdMetadataBusinessSceneDefinition.class, reverseConvertGenerate = false)
public class IsfdMetadataBusinessSceneDefinitionBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 父节点id
     */
    @NotNull(message = "父节点id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long parentId;

    /**
     * 业务场景名称
     */
    @NotBlank(message = "业务场景名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 业务场景描述
     */
    @NotBlank(message = "业务场景描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String description;

    /**
     * 使用目的
     */
    @NotBlank(message = "使用目的不能为空", groups = {AddGroup.class, EditGroup.class})
    private String purpose;

    /**
     * 业务节点编号，顶级父节点默认为0
     */
    @NotNull(message = "业务节点编号，顶级父节点默认为0不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long sort;

    /**
     * 是否删除，默认是0-未删除，1-已删除
     */
    private Long isDeleted;

    /**
     * 要素库id
     */
    private String databaseIds;

    private List<IsfdMetadataBusinessSceneDefinitionBo> children;

    private Long businessTopId;

    private String createByName;



}
